<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>智能进出口服务平台</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
</head>
<body>
<form class="layui-form" method="post" lay-filter="mainForm" id="mainForm">
    <div class="tsf-page-content" style="padding: 0px;">
        <div id="decView"></div>
        <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>主单信息</span></div>
        <div class="layui-card-body">
            <div id="invoiceView"></div>
        </div>
        <!--发票明细-->
        <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>发票明细</span></div>
        <div class="layui-card-body">
            <table class="layui-hide" id="member-list" lay-filter="member-list"></table>
        </div>
        <!--费用明细-->
        <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>费用明细</span></div>
        <div class="layui-card-body">
            <table class="layui-hide" id="cost-list" lay-filter="cost-list"></table>
        </div>
    </div>
    <div class="tsf-page-btn-group">
        <button type="button" class="layui-btn layui-btn-sm save-btn"><i class="fa fa-save"></i>确定保存</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-window"><i class="fa fa-close"></i>关闭</button>
    </div>
</form>
<script type="text/html" id="invoiceViewTemp">
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">系统单号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">订单编号：</label><label class="fval">{{d.orderNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">合同号：</label><label class="fval">{{removeNull(d.saleContractNo)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">实际发票号：</label><label class="fval">{{removeNull(d.invoiceNo)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">状态：</label><label class="fval">{{d.statusDesc}}</label></div>
        <div class="layui-col-md3"><label class="fkey">申请日期：</label><label class="fval">{{d.applyDate}}</label></div>
        <div class="layui-col-md3"><label class="fkey">确认日期：</label><label class="fval">{{removeNull(d.confirmDate)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">实际开票日期：</label><label class="fval">{{removeNull(d.invoiceDate)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">购货单位：</label><label class="fval">{{removeNull(d.buyerName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">纳税人识别号：</label><label class="fval">{{removeNull(d.buyerTaxpayerNo)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行名称：</label><label class="fval">{{removeNull(d.buyerBankName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.buyerBankAccount)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">银行联系人：</label><label class="fval">{{removeNull(d.buyerLinkPerson)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行电话：</label><label class="fval">{{removeNull(d.buyerBankTel)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.buyerBankAccount)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行地址：</label><label class="fval">{{d.buyerBankAddress}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">销货单位：</label><label class="fval">{{removeNull(d.sellerName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行名称：</label><label class="fval">{{removeNull(d.sellerBankName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.sellerBankAccount)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行地址：</label><label class="fval">{{removeNull(d.sellerBankAddress)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">结算类型：</label><label class="fval">{{removeNull(d.taxTypeDesc)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">开票类型：</label><label class="fval">{{removeNull(d.invoiceTypeDesc)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">开票金额：</label><label class="fval">{{removeNull(d.invoiceVal)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">税点：</label><label class="fval">{{removeNull(d.taxPoint)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">快递单号：</label><label class="fval">{{removeNull(d.expressNo)}}</label></div>
        <div class="layui-col-md3"></div>
        <div class="layui-col-md3"></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">开票要求：</label><label class="fval">{{removeNull(d.requirement)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">备注：</label><label class="fval">{{removeNull(d.memo)}}</label></div>
    </div>
</script>
<script type="text/html" id="taxCodeTemp">
    <input type="hidden" name="mid" LIST id="mid{{d.id}}"value="{{d.id}}"/>
    <input type="text" name="taxCode" LIST mid="{{d.id}}" class="layui-input required auto-tax-code" value="{{d.taxCode}}"/>
</script>
<script type="text/html" id="invoiceNameTemp">
    <input type="text" name="invoiceName" LIST id="invoiceName{{d.id}}" class="layui-input required" value="{{d.invoiceName}}"/>
</script>
<script type="text/html" id="taxNameTemp">
    <input type="text" id="taxCodeName{{d.id}}" class="layui-input" value="{{d.taxCodeName}}" readonly/>
</script>
<script type="text/html" id="goodsNameTemp">
    <input type="text" name="goodsName" LIST class="layui-input" value="{{d.goodsName}}" readonly/>
</script>
<script type="text/html" id="isFirstTemp">
    {{# if(d.isFirst){}}<i class="fa fa-check-circle-o green-a"></i> {{#}}}
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/js/sel-load.js?v=202001010101"></script>
<script type="text/javascript" src="/finance/invoice/cw-confirm.js?v=202001010101"></script>
</body>
</html>